package com.mimosa.common.message;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;

/**
 * 消息接收实体类
 * 
 * @author Mr.bai
 * 
 */
@Entity
@Table(name = "T_MESSAGE_RECEIVER")
public class TMessageReceiver extends BaseEntity {
	@ManyToOne
	@JoinColumn(name = "messageId", nullable = false)
	private TSiteMessage siteMessage;
	/** 封装好的站内信息对象 */

	private String receiverUserId;
	/** 接受着用户 */

	private String readStatus;
	/** 阅读状态 */

	private Date readTime;

	/** 阅读时间 */

	public TMessageReceiver() {
		super();
	}

	public TSiteMessage getSiteMessage() {
		return siteMessage;
	}

	public void setSiteMessage(TSiteMessage siteMessage) {
		this.siteMessage = siteMessage;
	}

	public String getReceiverUserId() {
		return receiverUserId;
	}

	public void setReceiverUserId(String receiverUserId) {
		this.receiverUserId = receiverUserId;
	}

	public String getReadStatus() {
		return readStatus;
	}

	public void setReadStatus(String readStatus) {
		this.readStatus = readStatus;
	}

	public Date getReadTime() {
		return readTime;
	}

	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}

}
